<h2><?= $this->translate('Detail of order number') . ' ' . $this->orderId ?></h2>
<?php if ( isset($this->order) ) { ?>
    <?php
        require_once('Zend/Currency.php');
        $currency = new Zend_Currency('cs_CZ');
        $timeCreated = explode('-',substr($this->order->timecreated,0,10));
    ?>
    <dl>
        <dt><?= $this->translate('Date Created') ?>:</dt>
            <dd><?= $timeCreated[2] . '.' . $timeCreated[1] . '. ' . $timeCreated[0] ?></dd>
        <dt><?= $this->translate('Status') ?>:</dt>
            <dd><?= $this->status->translate($this->order->status) ?></dd>
    </dl>
    
        <table>
            <tr>
                <th><?= $this->translate("Item Description") ?>:</th>
                <th><?= $this->translate("Amount") ?>:</th>
                <th><?= $this->translate("Price Per Item") ?>:</th>
                <th><?= $this->translate("Total Price") ?>:</th>
            </tr>
        <?php foreach( $this->orderItems as $item ) { ?>
            <tr>
                <td><?= $item->translate("description") ?></td>
                <td><?= $item->amount ?></td>
                <td><?= $currency->toCurrency($item->price) ?></td>
                <td><?= $currency->toCurrency($item->totalPrice) ?></td>     
            </tr>
        <?php } ?>
            <tr>
                <td colspan="4"><strong><?= $this->translate("Total Price") ?>: <?= $currency->toCurrency($this->order->totalPrice) ?></strong></td>
            </tr>
        </table>
<?php } else { ?>
    <p><?= $this->translate("No order found") ?></p>
<?php } ?>
